package com.mhkj.revise.monthPlan.entity;

import com.mhkj.revise.plan.entity.PlanNode;
import com.mics.core.common.validate.annotation.NotNull;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

import javax.persistence.*;

/**
 * 关注
 */
@Entity
@Table(name="t_follow")
@Validate
public class Follow extends BaseDomain {
    /**
     * 序列号
     */
    private static final long serialVersionUID = 5132049350416999727L;
    /**
     * 员工id
     */
    @Column(name="employee_id",length=48)
    @NotNull(message="员工id不能为空")
    private String employeeId;
    /**
     * 节点id
     */
    @JoinColumn(name="plan_node_id")
    @ManyToOne(fetch=FetchType.LAZY)
    private PlanNode planNode;
    
    @Transient
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public PlanNode getPlanNode() {
        return planNode;
    }

    public void setPlanNode(PlanNode planNode) {
        this.planNode = planNode;
    }
}
